package com.example.demo.dao;

import com.example.demo.entity.GLY;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface GLYRepository extends JpaRepository<GLY, Integer> {

    @Query(value = "select * from gly where gno=:gno and  pw=:pw", nativeQuery = true)
    GLY findByGnoAndPw(@Param("gno") String gno, @Param("pw") String pw);
}
